﻿using CommonLayer;
using DataAccess.Class.Logo;
using DataAccess.Class.Netsis;
using DataAccess.Interface;

namespace DataAccess
{
    public class InvoiceAccess
    {
        public static IInvoiceAccess CreateInstance(EntegrationObjects pEntegrationObject)
        {
           
            switch (pEntegrationObject)
            {
                case EntegrationObjects.Logo:
                    return new LgInvoiceAccess();
                case EntegrationObjects.Netsis:
                    return new NtInvoiceAccess();
            }
            return null;
        }
    }
}
